package com.parfinex.study.p2.mod201.app;

import com.parfinex.study.p2.mod201.dao.EmployeeDao;
import com.parfinex.study.p2.mod201.entity.Employee;

import java.sql.SQLException;
import java.util.List;

public class EmployeeTest {
    public static void main(String[] args) throws SQLException {
        //1.调用EmployeeDao的queryEmployee方法，传入用户名和密码
        //Employee employee = EmployeeDao.queryEmployee("贝贝", (String)"女");
        EmployeeDao employee = new EmployeeDao();
        List<Employee> employees = EmployeeDao.queryEmployee("贝贝","女");
    }
}


//    public void testFindAllOrders() throws SQLException {
//
//        List<Orders> allOrders = ordersDao.findAllOrders("001");
//
//        for (Orders orders : allOrders) {
//            System.out.println(orders);
//        }
//
//    }